package com.hc.wdj.auth.server.config;

import com.hc.wdj.auth.server.data.model.ClientModel;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author ryanwdj
 * @since 2024/11/17
 */
public class OAuthServerConfig implements Serializable {

    private static final long serialVersionUID = 7060883302112392847L;

    /** 是否打开模式：授权码（Authorization Code） */
    public Boolean enableAuthorizationCode = true;

    /** client 列表 */
    public Map<String, ClientModel> clients = new LinkedHashMap<>();


    /**
     * 获取 client 列表
     * @return /
     */
    public Map<String, ClientModel> getClients() {
        return clients;
    }
}
